﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace BankOrder
{
    public partial class MessageNum : Form
    {
        private int mode;
        private int num;
        public MessageNum()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            //System.Environment.Exit(0);
            this.Dispose();
            this.Close();
        }

        public void setMode(int sign)
        {
            this.mode = sign;
        }

        public int getMode()
        {
            return this.mode;
        }

        public void setNum(int sign)
        {
            this.num = sign;
        }

        public int getNum()
        {
            return this.num;
        }

        private void form_load(object sender, EventArgs e)
        {
            this.label1.Text = Convert.ToString(this.num);
        }
    }
}
